import App from './App'
import  request from '@/service/request1.js'
// import { createRequire } from 'module';
// import * as F2 from '@antv/f2'
// import F2 from '@antv/f2'
// const F2 = createRequire('@antv/f2')

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
// import * as F2 from '@antv/f2'
import './static/iconfont.js'  // 图标引入(公司图标)
// import '//at.alicdn.com/t/font_2819950_x07qxmfgezn.js'  // 图标引入(个人新增)
// console.log(F2)
export function createApp() {
  const app = createSSRApp(App)
  // app.config.globalProperties.$request = request
  // app.config.globalProperties.$F2 = F2
  return {
    app
  }
}
console.log(createApp())
// #endif